$def with(title = False, scripts = None)
$if title:
    $ title = title + ' | '
$else:
    $ title = ''

$ user_session = current_user()

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
 <HEAD>
	<meta name="content-language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <TITLE> $title猫克斯 - IT一本道 </TITLE>
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="Content-script-Type" content="text/javascript" />
	<link rel="stylesheet" href="/static/css/main.css" type="text/css" />
    $if scripts:
        $for script_file in scripts:
            <script type="text/javascript" src="/static/scripts/$script_file"></script>
 </HEAD>

 <BODY>
	<div class="menu1">
		<div class="menu2">
			<div class="cleafix">
				<a href="/"><img src="/static/images/common/logo.png" alt="猫克斯 - IT一本道"></a>
				<div class="menu3">
                    <a href="/">首页</a> | <a href="/u/make">推荐猫优</a> | <a href="/u/list/hot">猫优一览</a> | <a href="/f/list/hot">猫友一览</a> | <a href="/timeline">时间轴</a>　
                    $if user_session.logined:
                        <a href="/user/$user_session.uid">$user_session.name</a> [<a href="/logout">退出</a>]
                    $else:
                        [<a href="/login">登录</a>]
                </div>

			</div>

		</div>
	</div>

<!-- google_ad_section_start --> 
<div class="wrap1">
	<div class="wrap2">
		<!--
		<div style="text-align: center; margin: 0 0 20px 0;">
			<script type="text/javascript">
			google_ad_client = "ca-pub-0637466909124418";
			/* shindanmaker head 728x90 */
			google_ad_slot = "7431437629";
			google_ad_width = 728;
			google_ad_height = 90;
			</script>
			<script type="text/javascript"
			src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
		</div>
		-->
		<div class="main1">
			<div class="main2">
